<!--
图片放大
    - 光标经过，对应元素放大
    - 加父容器限制缩放范围
-->
<style>
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  .box {
    overflow: hidden;
    float: left;
    width: 200px;
    height: 150px;
    margin-left: 10px;
    background-color: cyan;
  }
  .box img {
    width: 100%;
    height: 100%;
    transition: all 0.3s;
  }
  .box:hover img {
    transform: scale(1.5);
  }
</style>

<div class="box">
  <img src="./img/item.png" alt="" />
</div>

<div class="box">
  <img src="./img/item.png" alt="" />
</div>
